﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第八十五题
//BC87 统计成绩
//https://www.nowcoder.com/practice/cad8d946adf64ab3b17a555d68dc0bba?tpId=107&tqId=33368&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int n = 0;
    float max = 0.0;
    float min = 100.0;
    float temp = 0.0;
    float sum = 0.0;
    scanf("%d", &n);

    for (int i = 0; i < n; i++) {
        scanf("%f", &temp);
        sum += temp;
        if (max < temp)
            max = temp;
        if (min > temp)
            min = temp;
    }

    printf("%.2f %.2f %.2f", max, min, sum / n);

    return 0;
}